package routers

import (
	"github.com/gin-gonic/gin"
	"gvb-server/Middlewares"
	Api "gvb-server/api"
)

func (ApiRoute) Advert(r *gin.RouterGroup) { // 传组
	ApiGroup := Api.GroupAPI.AdvertApi
	{
		r.GET("/advert", Middlewares.InitMiddleware, ApiGroup.Advert)
		r.POST("/advert", Middlewares.InitMiddleware, ApiGroup.AdvertCreate)
		r.PUT("/advert", Middlewares.InitMiddleware, ApiGroup.AdvertEdit)
		r.DELETE("/advert", Middlewares.InitMiddleware, ApiGroup.AdvertDel)
	}
}
